package com.ulook.lookplanet.mapper;

import com.ulook.lookplanet.bean.TUser;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface LoginMapper {

    /**
     * 通过id，密码获取用户信息
     */
    //@Select("select * from t_user where id = #{id} and password = #{password};")
    TUser getUser(TUser user);

    int checkEmail(String email);

    void addUser(TUser user);
}
